﻿using Microsoft.EntityFrameworkCore;
using RBAC_Class.Domain;
using System.ComponentModel.DataAnnotations;

namespace RBAC_Class.Infrastructrue
{
    public class DataDbContext:DbContext
    {
        public DataDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<User> User { get; set; }
        public DbSet<Role> Role { get; set; }
        public DbSet<Permission> Permission { get; set; }
        public DbSet<UserRole> UserRole { get; set; }
        public DbSet<RolePermission> RolePermission { get; set; }
    }
}
